﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ReportSystem_XY.Utility;

namespace ReportSystem_XY.Models
{
    public class BatchNameBasesProd    {
        public string reportname { get; set; }
        public string username { get; set; }
       
        public string recipename { get; set; }
        public DateTime starttime { get; set; }
        public DateTime stoptime { get; set; }

        public int tankid { get; set; }

        public static List<BatchNameBasesProd> GetBatchNameBasesListAll(string sql)
        {
            List<BatchNameBasesProd> batchNameBases = new List<BatchNameBasesProd>();
            DataTable dt = SQLHelper.ExecuteDataTable(sql);
            foreach (DataRow dr in dt.Rows)
            {
                batchNameBases.Add(dr.DataRowToModel<BatchNameBasesProd>());//反射
            }
            return batchNameBases;
        }
    }
   
}


